﻿using Simple.Framework.Ioc;
using Simple.Framework.Load;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/*********************************************************
 * 命名空间 SimpleNet.Pipeline
 * 接口名称 PipeLineClassLoadProcess
 * 开发人员：ADMIN
 * 创建时间：2023/12/25 10:03:39
 * 描述说明：
 * 更改历史：
 * 
 * *******************************************************/
namespace SimpleNet.Pipeline
{
	internal class PipeLineClassLoadProcess:BaseLoadProcess,IClassLoadProcess
	{
		private Type itype;

		private IContainer container;
		public PipeLineClassLoadProcess(IContainer container) {

			itype = typeof(IPipeline);
			this.container = container;	
		}
		public override bool Process(Type type)
		{
			if (type.IsAssignableTo(itype) && !type.IsInterface)
			{
				container.RegisterSingleton(itype,type).Autowird();
			}
			return false;
		}
	}
}
